<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<c:choose>
	<c:when test="${empty listBook}">
		<li><p style="color: red">Không có dữ liệu</p></li>
	</c:when>
	<c:otherwise>
		<c:forEach var="item" items="${listBook}">
			<li class="pr-item" onclick="viewDetail('${item.id}');">
				<div class="pr-mask">
					<div class="pr-img"
						style="background-image: url('getBookImage?bookId=${item.id}')"></div>
				</div>
				<div class="pr-info">
					<span class="pr-name">${item.name}</span> <span
						class="pr-desc">${item.shortDescription}</span>
				</div>
			</li>
		</c:forEach>
		<li class="pr-item"></li>
	</c:otherwise>
</c:choose>
